package com.xbongbong.pro.es.pojo;

import com.xbongbong.paas.enums.ConditionEnum;
import com.xbongbong.saas.base.EnumBase;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * es脚本信息pojo
 *
 * @author lcx
 * @version v1.0
 * @date 2019/2/25 11:11
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class EsScriptPojo implements Serializable {
    private static final long serialVersionUID = -2653818801199583146L;

    /**
     * 源枚举字段是否需要拼"data."前缀
     */
    private boolean sourceNeedData;

    /**
     * 源枚举字段
     */
    private EnumBase sourceEnum;

    /**
     * 目标枚举字段是否需要拼"data."前缀
     */
    private boolean targetNeedData;

    /**
     * 目标枚举字段
     */
    private EnumBase targetEnum;

    /**
     * 条件，大于，大于等于，小于，小于等于中的一个
     */
    private ConditionEnum conditionEnum;

    public EsScriptPojo() {
        this.sourceNeedData = true;
        this.targetNeedData = true;
    }

}
